const {app,assert} = require('egg-mock/bootstrap');
describe('test\extend\request.test.js',()=>{
   it('isChrome',()=>{
       let ctx = app.mockContext({
           headers:{
               'user-agent':'chrome'
           }
       });
       assert(ctx.request.isChrome == true);
   });
   it('isFirefox',()=>{
    let ctx = app.mockContext({
        headers:{
            'user-agent':'firefox'
        }
    });
    assert(ctx.request.isFirefox == true);
});
});